/*
 * @Author: zhangweinan
 * @Date: 2022-12-08 10:32:59
 * @LastEditors: zhangweinan
 * @LastEditTime: 2022-12-27 13:38:03
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\api\enterprise\invitation.js
 */
import request from '@/utils/request'

// 获取专家邀约列表
export function getInvitationList(data) {
  return request({
    url: "expert/invitation_detail/pageQuery",
    method: 'get',
    params: {
      pageNo: data.pageNo,
      pageSize: data.pageSize,
      subject: data.subject
    }
  })
}
//专家邀约通知信息
export function getDetail(data) {
  return request({
    url: `expert/invitation_detail/getDetail/${data}`,
    method: 'get',
  })
}
//专家邀约-邀约动态
export function getDynamic(data) {
  return request({
    url: `expert/invitation_detail/getDynamic/${data}`,
    method: 'get',
  })
}
//专家邀约-邀约名单
export function getNameList(data) {
  return request({
    url: `expert/invitation_detail/getNameList/${data}`,
    method: 'get',
  })
}
//定向专家库数据筛查
export function getDirectionalLoad(data) {
  return request({
    url: 'expert/invitation/directionalLoad',
    method: 'post',
    data
  })
}
//保存定向选在的最终结果
export function saveDirectionalLoad(data) {
  return request({
    url: 'expert/invitation/saveExperts',
    method: 'post',
    data
  })
}
//随机抽取数据筛选
export function getRandomLoadData(data) {
  return request({
    url: 'expert/invitation/loadData',
    method: 'post',
    data
  })
}
//获取筛选出的的最终数据
export function getLoadByKey(data) {
  return request({
    url: `expert/invitation/loadByKey/${data}`,
    method: 'get'
  })
}
//删除邀约专家
export function deleteExpert(data) {
  return request({
    url: `expert/invitation/deleteExpert/${data.loadKey}/${data.expertId}`,
    method: 'delete',
  })
}
//获取领域字典数据
export function getAreaExpertise() {
  return request({
    url: 'expert/info/getAreaExpertise',
    method: 'get',
  })
}
//获取标签字典数据
export function getTags() {
  return request({
    url: 'expert/info/getTags',
    method: 'get',
  })
}
//获取专家列表名称数据
export function getList() {
  return request({
    url: 'expert/info/getList',
    method: 'get',
  })
}
//保存专家遴选
export function saveExpertsSelect(data) {
  return request({
    url: 'expert/invitation/save',
    method: 'post',
    data
  })
}
//专家邀约开启
export function startExpertInvitation(data) {
  return request({
    url: `expert/invitation/start/${data}`,
    method: 'post',
  })
}
//删除邀约
export function deleteExpertInvitation(data) {
  return request({
    url: `expert/invitation/delete/${data}`,
    method: 'DELETE',
  })
}
//获取邀约的屏蔽条件
export function getConditionInvitation(data) {
  return request({
    url: `expert/condition/getCondition/${data}`,
    method: 'get',
  })
}
//专家名单替换
export function replaceInvitation(data) {
  return request({
    url: "expert/invitation/cancel",
    method: 'post',
    data
  })
}
//专家名单确认
export function confirmInvitation(data) {
  return request({
    url: `expert/invitation/confirm/${data}`,
    method: 'post',
    data
  })
}
//获取专家邀约实时信息
export function getInvitationTimeInfo(data) {
  return request({
    url: `expert/invitation_detail/getInvitation_time_info/${data}`,
    method: 'get',
  })
}
//专家短信确认
export function confirmMessageInvitation(data) {
  return request({
    url: "expert/invitation_confirm/confirm",
    method: 'post',
    data,
  })
}






